/* eslint-disable no-unused-vars */
import axios from '@/libs/api.request'

export const listAllNotice = () => {
  return axios.request({
    url: 'sys/notice/show',
    method: 'get'
  })
}

export const infoNotice = (id) => {
  return axios.request({
    url: 'sys/notice/info/' + id,
    method: 'get'
  })
}

export const saveNotice = (obj) => {
  return axios.request({
    url: 'sys/notice/save',
    method: 'post',
    data: obj
  })
}

export const deleteNotice = (id) => {
  const data = [id]
  return axios.request({
    url: 'sys/notice/delete',
    method: 'post',
    data: data
  })
}
